using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Know_Path - 知道目录 - 对象继承类
    /// </summary>
    [MetadataType(typeof(KnowPathValidaTion))]
    public class KnowPath : IKnowPath<KnowPath>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class KnowPathValidaTion
       {

     

        /// <summary>
        /// 目录ID
        /// </summary>
        [Display(Name ="目录ID")]
        [Required]
        [StringLength(36)]
        public String PathId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="标题")]
        [Required]
        [StringLength(100)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 上级目录
        /// </summary>
        [Display(Name ="上级目录")]
        [Required]
        [StringLength(36)]
        public String SuperiorPath
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 路径
        /// </summary>
        [Display(Name ="路径")]
        [Required]
        [StringLength(300)]
        public String Path
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 目录深度
        /// </summary>
        [Display(Name ="目录深度")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Depth
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name ="创建时间")]
        [Required]

        public DateTime SubmitTime
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
